import { connect } from 'react-redux'
import { incA, decA, asyncMul } from '../redux/actions'
import Count from '../Count'
// WithCount组件的作用: 他们内部监听了redux数据的变化, 如果redux数据变化,WithCount更新.Count是WithCount的子组件,所以Count也会更新

export default connect((state) => ({ xxx: state.count }), { incA, decA, asyncMul })(
  Count
)
